package com.nnfe.fyd.base;

import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.support.v4.app.Fragment;

/**
 * Created by dada on 2017/3/21.
 */

public class WebViewActivity extends BaseActivity{


    /**
     * @param context
     */
    public static void lauch(Context context, String title,String url) {
        Intent intent = new Intent();
        intent.setClass(context, WebViewActivity.class);
        intent.putExtra("title", title);
        intent.putExtra("url", url);
        context.startActivity(intent);
    }

    @Override
    public Fragment getContentFragment() {
        WebViewFragment fragment=new WebViewFragment();
        Bundle bundle=new Bundle();
        bundle.putString("title",getIntent().getStringExtra("title"));
        bundle.putString("url",getIntent().getStringExtra("url"));
        fragment.setArguments(bundle);
        return fragment;
    }
}
